import { request } from '@umijs/max';

export const login = (data: { password: string; userName: string }) => {
  return request('/admin/auth/loginByUserName', {
    data,
    method: 'post',
  });
};
export const changePassword = (data: { password: string; rePassword: string }) => {
  return request('/admin/auth/updateLoginPwd', {
    data,
    method: 'post',
  });
};
export const mobileLogin = (data: { password: string; mobile: string }) => {
  return request('/admin/auth/login', {
    data,
    method: 'post',
  });
};
